package com.augurit.wf.common.dao;

import org.springframework.stereotype.Repository;

import com.augurit.common.base.dao.BaseDao;
import com.augurit.wf.common.entity.WfViewConfig;

@Repository
public class WfViewConfigDao extends BaseDao<WfViewConfig, Long> {
	public void deleteByTemplateId(Long templateId){
		if(templateId == null){
			throw new IllegalArgumentException("templateId is must not null!");
		}
		WfViewConfig entity = this.findUniqueBy("templateId", templateId);
		if(entity != null)
			this.delete(entity);
	}
}